/**
 * 
 */
package org.ccay.personalized;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;

import org.ccay.core.base.BaseResourceVO;

/**
 * @author chaowangbang
 *
 */
@JsonIgnoreProperties(ignoreUnknown=true,
	value={"appName","scope","currentUserId","createdBy","creationDate","lastUpdatedBy","creationUserCN","lastUpdateUserCN"})
public class PersonalizedSettingVO extends BaseResourceVO{
	/**
	 * 
	 */
	private static final long serialVersionUID = -3797173897138797167L;
	/**
	 * 主键ID
	 */
	 private int settingId; 
	
	
	/**
	 * 配置名key
	 */
	private String settingKey;
	
	/**
	 * 用户id
	 */
	private long userId;
	
	/**
	 * 设置内容
	 */
	private String settingContent;
	
	/**
	 * 个性化设置条数
	 */
	private int numberOfSettings;
	
	/**
	 * 无参构造方法
	 */
	public PersonalizedSettingVO(){}
	/**
	 * 有参构造方法，参数对应数据中的联合主键
	 * @param nameKey
	 * @param type
	 * @param userId
	 */
	public PersonalizedSettingVO(String settingKey,long userId){
		this.settingKey = settingKey;
		this.userId = userId;
	}
	public PersonalizedSettingVO(int settingId,long userId){
		this.settingId = settingId;
		this.userId = userId;
	}
	
	/**
	 * 获取个性化条数
	 * @return
	 */
	public int getNumberOfSettings() {
		return numberOfSettings;
	}
	/**
	 * 设置个性化条数
	 * @param numberOfSettings
	 */
	public void setNumberOfSettings(int numberOfSettings) {
		this.numberOfSettings = numberOfSettings;
	}

	/**
	 * @return
	 */
	public int getSettingId() {
		return settingId;
	}
	/**
	 * @param settingID
	 */
	public void setSettingID(int settingID) {
		this.settingId = settingID;
	}

	public String getSettingKey() {
		return settingKey;
	}

	/**
	 * @param settingKey
	 */
	public void setSettingKey(String settingKey) {
		this.settingKey = settingKey;
	}


	/**
	 * @return
	 */
	public long getUserId() {
		return userId;
	}

	/**
	 * @param userId
	 */
	public void setUserId(long userId) {
		this.userId = userId;
	}


	/**
	 * @return
	 */
	public String getSettingContent() {
		return settingContent;
	}

	/**
	 * @param settingContent
	 */
	public void setSettingContent(String settingContent) {
		this.settingContent = settingContent;
	}
	
}
